<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>



  <c:import url="/view/include/header.jsp"/>

   <!-- end-->
  <div id="container_2">
    <dl class="top_img">
      <dd class="top_visuall_title">
        <p class="top_visuall_txt"><img src="/images/common/sub_titleimg_1.gif" alt="현대엘리베이터는 공정하고 투명한 기업문화 조성을 위해 상생의 경영방식을 추구합니다." width="497" height="64"/><a href="file:///C|/Users/ecg-youn/Downloads/noticeDetail.jsp"></a></p>
        <p class="top_visuall_txt_2"><img src="/images/common/sub_titleimg_2.gif" alt="" width="404" height="109"/></p>
      </dd>
    </dl>
    <div class="content"> 
      <!-- include start-->
      <s:if test="%{boardBean.board_code.equals('BD201')}"><c:import url="/view/include/ethicLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD202')}"><c:import url="/view/include/complianceLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD203')}"><c:import url="/view/include/fairTradeLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD204')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD205')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD206')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD501')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD502')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD503')}"><c:import url="/view/include/workLeft.jsp"/></s:if>
      <s:if test="%{boardBean.board_code.equals('BD400')}"><c:import url="/view/include/cyberLeft.jsp"/></s:if>
      <!-- end-->
      <div class="sub_content">
        <dl class="ethic_title">
          <dd class="location"><img src="/images/common/home_img.gif" alt="집" width="15" height="15"/></dd>
          <dd class="location_txt">
          	<s:if test="%{boardBean.board_code.equals('BD201')}">HOME > 윤리경영 > 윤리경영 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD202')}">HOME > 준법지원 > 준법지원 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD203')}">HOME > 공정거래 > 공정거래 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD204')}">HOME > 업무지원 > 업무지원 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD205')}">HOME > 업무지원 > 법률자문요청</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD206')}">HOME > 업무지원 > 소송개시요청</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD501')}">HOME > 업무지원 > 영업부문 > 영업사례해설 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD502')}">HOME > 업무지원 > 설치부문 > 설치사례해설 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD503')}">HOME > 업무지원 > 서비스부문 > 서비스사례해설 Q&amp;A</s:if>
          	<s:if test="%{boardBean.board_code.equals('BD400')}">HOME > 사이버제보 > 제보하기</s:if>
          </dd>
        </dl>
        <dl class="img_ethic_box">
          <dd class="img_ethic">
          	<s:if test="%{boardBean.board_code.equals('BD201')}"><img src="/images/ethic/ET_qna.gif" alt="윤리경영 Q&amp;A" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD202')}"><img src="/images/compliance/CP_qna.gif" alt="준법지원 Q&amp;A" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD203')}"><img src="/images/fairTrade/JT_qna.gif" alt="공정거래 Q&amp;A" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD204')}"><img src="/images/work/SP_qna.gif" alt="업무지원 Q&amp;A" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD205')}"><img src="/images/work/SP_law.gif" alt="법률자문요청" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD206')}"><img src="/images/work/SP_litigation.gif" alt="소송개시요청" width="166" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD501')}"><img src="/images/work/SP_business.gif" alt="영업사례해설 Q&amp;A" width="200" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD502')}"><img src="/images/work/SP_installation.gif" alt="설치사례해설 Q&amp;A" width="200" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD503')}"><img src="/images/work/SP_Service_part.gif" alt="서비스사례해설 Q&amp;A" width="200" height="23"/></s:if>
         	<s:if test="%{boardBean.board_code.equals('BD400')}"><img src="/images/cyber/RP_Information.gif" alt="사이버제보안내" width="166" height="23"/></s:if>
          </dd>
        </dl>
        <dl class="img_ethic_box_2">
           <dd class="img_ethic">
           	<s:if test="%{boardBean.board_code.equals('BD201')}"><!-- <img src="/images/ethic/ET_title_3.gif" alt="윤리경영 관한 각종 자료모음입니다." width="421" height="26"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD202')}"><!-- <img src="/images/compliance/CP_title_2.gif" alt="준법지원에 관한 궁금사항을 질문하고 답변을 확인할 수 있는 공간입니다." width="460" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD203')}"><!-- <img src="/images/fairTrade/JT_title_2.gif" alt="공정거래에 관한 궁금사항을 질문하고 답변을 확인할 수 있는 공간입니다." width="460" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD204')}"><!-- <img src="/images/work/SP_title_2.gif" alt="업무지원에 관한 궁금사항을 질문하고 답변을 확인할 수 있는 공간입니다" width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD205')}"><!-- <img src="/images/work/SP_title_5.gif" alt="법률자문요청에 관한 각종 자료모음입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD206')}"><!-- <img src="/images/work/SP_title_4.gif" alt="소송에관한 궁금사항을 질문하고 답변을 확인할 수 있는 공간입니다." width="639" height="16"/> --></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD501')}"></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD502')}"></s:if>
          	<s:if test="%{boardBean.board_code.equals('BD503')}"></s:if>
           </dd>
        </dl>
        <!-- 테이블 코딩-->
        <dl class="qna_box">
          <dd class="qna_Retrieval">
          <form id="searchForm" action="/board/qnaList.hcom" method="post" enctype="multipart/form-data">
          <input type="hidden" name="board_code" id="board_code"  value="${boardBean.board_code }"/>
          <input type="hidden" id="currentPage" name="currentPage" value="${boardBean.currentPage }" />
          <input type="hidden" id="open_flag" name="open_flag" value="${boardBean.open_flag}" /> 
          <input type="hidden" name="pw" id="pw" value=""/>
          <input type="hidden" name="url" id="url" value=""/>   
            <select name="search" title="검색분류">
              <option value="all">전체</option>
              <option value="title">제목</option>
              <option value="content">내용</option>
              <option value="name">작성자</option>
            </select>
            <input type="text" style="width:180px;" name="searchKeyword"  title="검색어 입력"/>
            <input type="image" style="width:70px; height:25px; margin-left:3px;" src="/images/common/btn_8.gif" alt="검색" />
          </form>
          </dd>
          <dd class="qna_box">
            <table cellspacing="0" cellpadding="0" summary="공지사항 목록" class="qna">
              <caption> 게시판 목록</caption>
              <colgroup>
                <col width="40">
                <col width="400" >
                <col width="">
                <col width="">
                <col width="60">
              </colgroup>
              <thead>
                <tr>
                  <th class="gray_ff"><span class="f_white">번호</span></th>
                  <th class="gray_ff"><span class="f_white">제목</span></th>
                  <th class="gray_ff"><span class="f_white">작성자</span></th>
                  <th class="gray_ff"><span class="f_white">작성일</span></th>
                  <th><span class="f_white">답변</span></th>
                </tr>
              </thead>
              <tbody>
              	<s:if test="%{1 > list.size()}">
              	<tr>
                    <td colspan="5">게시물이 없습니다.</td>
                <tr>
              	</s:if>
              	<s:iterator value="list" status="i">
                <tr>
                  <td><s:property value="boardBean.totalCount - #i.count+1" /></td>
                  <td class="veiw" ><a class="openpw" style="cursor:pointer" id="${pw}">
                  	<%-- <a href="/board/qnaDetail.hcom?board_seq=${board_seq}&board_code=${board_code}"> --%>
                  	<%-- <s:if test="%{#session.position_flag.equals('admin')}">
						<a href="/board/qnaDetail.hcom?board_seq=${board_seq}&board_code=${board_code}">
 	 				</s:if> --%>
                     <s:if test="%{#session.position_flag.equals('admin') || #session.position_flag.equals('leader')}">
                     <span style="display:none;" style="cursor:pointer" id='/board/qnaDetail.hcom?board_seq=${board_seq}&board_code=${board_code}'>ADMIN</span>
                     </s:if>
                     <s:if test="%{#session.position_flag.equals('employee')}">
                     <span style="display:none;" id='/board/qnaDetail.hcom?board_seq=${board_seq}&board_code=${board_code}'></span>
                     </s:if>
                    <%-- <a href="/board/pwcheck.hcom?board_seq=${board_seq}&board_code=${board_code}"> --%>
									<c:choose>
		                           		<c:when test="${title.length() > 30}">
		                           			<c:if test="${open_flag == 'Y'}">
		                           			<strong>${title.substring(0,30)}...</strong>
		                           			</c:if>
		                           			<c:if test="${open_flag != 'Y'}">
		                           			${title.substring(0,30)}...
		                           			</c:if>
		                           		</c:when>
		                           		<c:otherwise>
		                           			<c:if test="${open_flag == 'Y'}">
		                           			<strong>${title}</strong>
		                           			</c:if>
		                           			<c:if test="${open_flag != 'Y'}">
		                           			${title}
		                           			</c:if>
		                           		</c:otherwise>
		                           </c:choose>
					</a>
					<c:if test="${!empty pw}"><img src="/images/common/board_icon2.gif"/></c:if>
                  </td>
                  <td>${mem_name }</td>
                  <td>
                  	<c:choose>
		            	<c:when test="${write_time.length() > 10}">${write_time.substring(0,10)}</c:when>
		            	<c:otherwise>${write_time}</c:otherwise>
		           	</c:choose>
                  </td>
                  <td >
                  	<c:choose>
		            	<c:when test="${answer_flag=='N'}"><img src="/images/common/btn_6.gif" alt="접수" width="49" height="16"/></c:when>
		            	<c:otherwise><img src="/images/common/btn_7.gif" alt="완료"/></c:otherwise>
		           	</c:choose>
                  </td>
                </tr>
                </s:iterator>
              </tbody>
            </table>
          </dd>
          <dd class="t_right"><a href="/board/qnaRegForm.hcom?board_code=${boardBean.board_code }"><img src="/images/common/btn_3.gif" alt="글쓰기" width="70" height="25"/></a></dd>
          <dd class="t_center"> 
            <!-- 페이징 -->
            <div class="paginate_complex center">
            <s:property value="boardBean.pagingStr" escape="false"/>
             </div>
             <!--// 페이징 --> 
          </dd>
        </dl>
      </div>
    </div>
  </div>
  <input type="hidden" id="auth" value="${session.position_flag}" />
  <!-- 비밀번호 창 띄우는거 -->
 
  <div class="alert" id="pwPop" style="display:none;background-color:#F6F6F6;">
     <dl class="alert_input">
            <dd class="alert_space"></dd>
         <dd class="input_01 f_a_red"><strong>비밀번호</strong></dd>
         <dd class="input_02"><input type=password style="width:130px;" id="pw_confirm" name="pw_confirm" maxlength="4"/> </dd>
            <dd class="input_03 "><input type=button style="width:50px;" id="btn_confirm" value="확인" /></dd>
        </dl>
        <dl class="alert_text f_b_red">
         <dd id="confirm_pass"><input type=button style="width:50px;" id="btn_close" value="닫기" /></dd>
        </dl>
  </div>
 
  <!-- 비밀번호 끝 -->
  
  <!-- contanier end--> 
  <!-- footer start-->
  <c:import url="/view/include/footer.jsp"/>
  <!-- end--> 
<script src="/js/pwcheck.js"></script> 
<script type="text/javascript">
function movePage(page){
		$("#currentPage").val(page);
		/* alert($("#currentPage").val()); */
		location.href="/board/qnaList.hcom?board_code="+$("#board_code").val()+"&currentPage="+$("#currentPage").val();
	}

</script>

